home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11143 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  791 b 

  1. Path: news2.noc.netcom.net!news
  2. From: Tarang Deshpande <tarang@willows.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Calling a function in variable
  5. Date: Tue, 19 Mar 1996 16:58:52 -0800
  6. Organization: NETCOM Network Operations
  7. Message-ID: <314F584C.32CF@willows.com>
  8. References: <4ikjlq$71@Server2.swix.ch>
  9. NNTP-Posting-Host: daffy.willows.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0GoldB1 (Win95; I)
  14.  
  15. Aurelio Caliaro wrote:
  16. > It is strange but I can't remember how I need to call a
  17. > function whose address is in a variable.
  18. > If the function address is in "(void*)Addr", how do I
  19. > call it?
  20. >   Aurelio
  21.  
  22.  
  23. The same way you would address the value of any other pointer; with
  24. a * in front of it.
  25.  
  26. (*Addr)( param1 );
  27.